package xin.marcher.module.diplomacy.api;

import xin.marcher.module.common.core.JsonResult;
import xin.marcher.module.diplomacy.domain.dto.ProductSaleCollectDTO;
import xin.marcher.module.diplomacy.domain.dto.ProductSaleRelationDTO;
import xin.marcher.module.diplomacy.domain.query.ProductSaleQuery;
import xin.marcher.module.diplomacy.domain.query.ProductSaleRelationQuery;

import java.util.List;

/**
 * 商品可售接口
 */
public interface ProductSaleApi {

    /**
     * 分页查询卖家下的可售商品
     *
     * @param productSaleQuery
     */
    JsonResult<ProductSaleCollectDTO> getSaleSkuByPage(ProductSaleQuery productSaleQuery);

    /**
     * 根据卖家ID查询可售商品列表
     *
     * @param sellerId
     */
    JsonResult<List<String>> getSaleSkuBySellerId(Long sellerId);

    /**
     * 根据卖家ID和商品编码判断商品是否可售
     *
     * @param productSaleRelationQuery
     */
    JsonResult<ProductSaleRelationDTO> checkSaleSku(ProductSaleRelationQuery productSaleRelationQuery);

}
